<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: usrbench.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00959.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">usrbench.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a00962_source.html">usrbench.h</a>&quot;</code><br />
<code>#include &lt;commdlg.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
</div>
<p><a href="a00959_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:abb7ecd30dcd5aeb6e2dcf98a3be52f7e"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#abb7ecd30dcd5aeb6e2dcf98a3be52f7e">AboutDlgProc</a> (HWND hwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> msg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wParam, LONG lParam)</td></tr>
<tr class="separator:abb7ecd30dcd5aeb6e2dcf98a3be52f7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af34bbcb3ef1a306c3e8bf95aba01934a"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#af34bbcb3ef1a306c3e8bf95aba01934a">ResultsDlgProc</a> (HWND hwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> msg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wParam, LONG lParam)</td></tr>
<tr class="separator:af34bbcb3ef1a306c3e8bf95aba01934a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bc00359f9df12a3116bcbcab41c6861"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a9bc00359f9df12a3116bcbcab41c6861">InitializeApplication</a> (void)</td></tr>
<tr class="separator:a9bc00359f9df12a3116bcbcab41c6861"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b02eaccce9102a03d1af8a6341c1f31"><td class="memItemLeft" align="right" valign="top">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a3b02eaccce9102a03d1af8a6341c1f31">InitializeInstance</a> (<a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a> nCmdShow)</td></tr>
<tr class="separator:a3b02eaccce9102a03d1af8a6341c1f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4370332d227c6b02209ca8451e38f1ac"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a4370332d227c6b02209ca8451e38f1ac">SaveResults</a> (HWND hwnd)</td></tr>
<tr class="separator:a4370332d227c6b02209ca8451e38f1ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab736c696a859a7874409ddedf6232149"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#ab736c696a859a7874409ddedf6232149">AutoTest</a> (void)</td></tr>
<tr class="separator:ab736c696a859a7874409ddedf6232149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb03e86a16d1514682dc6195682ad63"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a1fb03e86a16d1514682dc6195682ad63">WriteResults</a> (HFILE)</td></tr>
<tr class="separator:a1fb03e86a16d1514682dc6195682ad63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a0584e037e6a30ab6bc3dd5268d746"><td class="memItemLeft" align="right" valign="top">int PASCAL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#ae7a0584e037e6a30ab6bc3dd5268d746">WinMain</a> (HINSTANCE hinst, HINSTANCE hinstPrev, LPSTR lpCmdLine, int nCmdShow)</td></tr>
<tr class="separator:ae7a0584e037e6a30ab6bc3dd5268d746"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a749e3f7421c8c1c569abe8372e99fd24"><td class="memItemLeft" align="right" valign="top">LONG <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a749e3f7421c8c1c569abe8372e99fd24">FrameWndProc</a> (HWND hwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> msg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wParam, LONG lParam)</td></tr>
<tr class="separator:a749e3f7421c8c1c569abe8372e99fd24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8925d17d0c2781630afd3a7740b9c1ef"><td class="memItemLeft" align="right" valign="top">LONG <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a8925d17d0c2781630afd3a7740b9c1ef">MDIChildWndProc</a> (HWND hwnd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> msg, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wParam, LONG lParam)</td></tr>
<tr class="separator:a8925d17d0c2781630afd3a7740b9c1ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a85f2e3a9a4aa2644b6d0d7fda55d5cae"><td class="memItemLeft" align="right" valign="top">HANDLE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a></td></tr>
<tr class="separator:a85f2e3a9a4aa2644b6d0d7fda55d5cae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28d36667cc5e6468e4d0dd84bbbc5cbf"><td class="memItemLeft" align="right" valign="top">HANDLE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a28d36667cc5e6468e4d0dd84bbbc5cbf">ghaccel</a></td></tr>
<tr class="separator:a28d36667cc5e6468e4d0dd84bbbc5cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a712c6a40b719d9342a3a16e3a5d73df1"><td class="memItemLeft" align="right" valign="top">HWND&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a> = NULL</td></tr>
<tr class="separator:a712c6a40b719d9342a3a16e3a5d73df1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1446ae6b35424dfac9215b4ff607328e"><td class="memItemLeft" align="right" valign="top">HWND&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a> = NULL</td></tr>
<tr class="separator:a1446ae6b35424dfac9215b4ff607328e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7c2f1784ebd6af429d052a6060a56ed"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = FALSE</td></tr>
<tr class="separator:aa7c2f1784ebd6af429d052a6060a56ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f4823fbb5e586752d1a82032a9d731"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a></td></tr>
<tr class="separator:af1f4823fbb5e586752d1a82032a9d731"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9704cdbd2f48e35f48487a9cb12c1886"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00962.html#a538ee397e57bb2513177d3464ab5b21f">BENCHMARKINFO</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a> []</td></tr>
<tr class="separator:a9704cdbd2f48e35f48487a9cb12c1886"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef887e113604a59d04abc0a370ff71bf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#aef887e113604a59d04abc0a370ff71bf">AutoRun</a> = FALSE</td></tr>
<tr class="separator:aef887e113604a59d04abc0a370ff71bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c58ba6afcf635eb20512dd78b895474"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a7c58ba6afcf635eb20512dd78b895474">szFrame</a> [] = &quot;frame&quot;</td></tr>
<tr class="separator:a7c58ba6afcf635eb20512dd78b895474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f97adf6f4b1f41f25ea08c78fa70d40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00959.html#a7f97adf6f4b1f41f25ea08c78fa70d40">szChild</a> [] = &quot;child&quot;</td></tr>
<tr class="separator:a7f97adf6f4b1f41f25ea08c78fa70d40"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="abb7ecd30dcd5aeb6e2dcf98a3be52f7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb7ecd30dcd5aeb6e2dcf98a3be52f7e">&#9670;&nbsp;</a></span>AboutDlgProc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> AboutDlgProc </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00305">305</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;{</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="keywordflow">switch</span> (msg) {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">case</span> WM_INITDIALOG:</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="comment">         * nothing to initialize</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">case</span> WM_COMMAND:</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keywordflow">switch</span> (LOWORD(wParam)) {</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        <span class="keywordflow">case</span> IDOK:</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="keywordflow">case</span> IDCANCEL:</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;            <a class="code" href="a00098.html#aa5a68d879547f0460331c71bee94763a">EndDialog</a>(hwnd, 0);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        }</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160; </div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    }</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00098_source.html#l00022">EndDialog()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>.</p>

</div>
</div>
<a id="ab736c696a859a7874409ddedf6232149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab736c696a859a7874409ddedf6232149">&#9670;&nbsp;</a></span>AutoTest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID AutoTest </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00563">563</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;                   {</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    <span class="keyword">static</span> OPENFILENAME ofn;</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">char</span> szFilename[80];</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;    <span class="keywordtype">char</span> szT[80];</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    <span class="keywordtype">int</span> i, hfile;</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160; </div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160; </div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;    Sleep (5000);</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160; </div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    <a class="code" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = TRUE;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160; </div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> = 0; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>++) {</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].<a class="code" href="a03041.html#ab6f6296e7ed3541ddaeeeec83b92448e">pfnBenchmark</a>(<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].cIterations);</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    }</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160; </div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160; </div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    hfile = _lopen(<span class="stringliteral">&quot;usrbench.out&quot;</span>, OF_READWRITE); <span class="comment">//try to open file</span></div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <span class="keywordflow">if</span> (hfile == -1){</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    hfile = _lcreat(<span class="stringliteral">&quot;usrbench.out&quot;</span>, 0);  <span class="comment">//create it if it does not exist</span></div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    <span class="keywordflow">if</span> (hfile == -1)</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    }</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    _llseek(hfile, 0L, 2);  <span class="comment">// go to end of file for append</span></div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160; </div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160; </div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <a class="code" href="a00959.html#a1fb03e86a16d1514682dc6195682ad63">WriteResults</a>(hfile);</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160; </div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;    _lclose(hfile);</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160; </div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160; </div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00953_source.html#l01711">gabmi</a>, <a class="el" href="a00953_source.html#l01762">gcbmi</a>, <a class="el" href="a00959_source.html#l00022">gfAll</a>, <a class="el" href="a00959_source.html#l00023">gibmi</a>, <a class="el" href="a00962_source.html#l00052">_BENCHMARKINFO::pfnBenchmark</a> , 以及 <a class="el" href="a00959_source.html#l00597">WriteResults()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a749e3f7421c8c1c569abe8372e99fd24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a749e3f7421c8c1c569abe8372e99fd24">&#9670;&nbsp;</a></span>FrameWndProc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> FrameWndProc </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00128">128</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    CLIENTCREATESTRUCT ccs;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">char</span> szT[80];</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    HMENU hmenu;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">switch</span> (msg) {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">case</span> WM_CREATE:</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment">         * Add all the benchmark menu items to the benchmark menu.</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        hmenu = <a class="code" href="a03743.html#ad4d1c0493ddaed6f7a75c7cdab06756d">GetSubMenu</a>(<a class="code" href="a03743.html#ac9cce9d0a590697fbfd45e1d983b1454">GetMenu</a>(hwnd), 2);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; i++) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            wsprintf(szT, <span class="stringliteral">&quot;&amp;%c. %s&quot;</span>, <span class="charliteral">&#39;A&#39;</span> + (i%26), (LPSTR)<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].pszBenchTitle);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            <span class="keywordflow">if</span> ((i &gt; 0) &amp;&amp; ((i%26) == 0))</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                AppendMenu(hmenu, MF_MENUBREAK, 200, NULL);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            AppendMenu(hmenu, MF_STRING | MF_ENABLED, <a class="code" href="a00962.html#a13eb1bcd4ba7650a3d3827ad2ef87d65">IDM_BENCHFIRST</a> + i, szT);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].<a class="code" href="a03041.html#a505f13dd92b3c91ba73c8dc86856fdcc">usPerIteration</a> = 0;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        }</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment">         * Create the MDI client filling the client area</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        ccs.hWindowMenu = NULL;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        ccs.idFirstChild = 0;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a> = CreateWindow(<span class="stringliteral">&quot;mdiclient&quot;</span>,</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                NULL, WS_CHILD | WS_CLIPCHILDREN | WS_VSCROLL | WS_HSCROLL,</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                0, 0, 0, 0, hwnd, (HMENU)0xCAC, <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, (LPSTR)&amp;ccs);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        ShowWindow(<a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a>, SW_SHOW);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">case</span> WM_COMMAND:</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keywordflow">switch</span> (LOWORD(wParam)) {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00962.html#a589e0105bc3e8681893dbf51210ceeec">IDM_ABOUT</a>:</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            DialogBox(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, (LPSTR)<a class="code" href="a00962.html#a74dbd3f210d99eb11318cd83e1475abb">IDD_ABOUT</a>, hwnd, (DLGPROC)<a class="code" href="a00959.html#abb7ecd30dcd5aeb6e2dcf98a3be52f7e">AboutDlgProc</a>);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00962.html#aef6bd4fe1a5a9bc20ec2627f37ca815e">IDM_VIEWRESULTS</a>:</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            DialogBox(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, (LPSTR)<a class="code" href="a00956.html#a417ead1470235f472c597f4122fedbfc">IDD_RESULTS</a>, hwnd, (DLGPROC)<a class="code" href="a00959.html#af34bbcb3ef1a306c3e8bf95aba01934a">ResultsDlgProc</a>);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00956.html#a4c546dd348aa5f1233485f2214a24a23">IDM_SAVERESULTS</a>:</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <a class="code" href="a00959.html#a4370332d227c6b02209ca8451e38f1ac">SaveResults</a>(hwnd);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00962.html#a1aab8591ea67205af25b67cf6ff71103">IDM_ALL</a>:</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            <a class="code" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = TRUE;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> = 0; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>++) {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].<a class="code" href="a03041.html#ab6f6296e7ed3541ddaeeeec83b92448e">pfnBenchmark</a>(<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].cIterations);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <a class="code" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = FALSE;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            DialogBox(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, (LPSTR)<a class="code" href="a00956.html#a417ead1470235f472c597f4122fedbfc">IDD_RESULTS</a>, hwnd, (DLGPROC)<a class="code" href="a00959.html#af34bbcb3ef1a306c3e8bf95aba01934a">ResultsDlgProc</a>);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00962.html#a09fa3e46409bbe2ae7c8f417ae066f90">IDM_PROFILEALL</a>:</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="comment">             * We don&#39;t want a million iterations of these guys when we&#39;re</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="comment">             * profiling because it takes too long.  Each benchmark will</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="comment">             * iterate 5 times.</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            <a class="code" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = TRUE;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;            <span class="keywordflow">for</span> (<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> = 0; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>++) {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].<a class="code" href="a03041.html#ab6f6296e7ed3541ddaeeeec83b92448e">pfnBenchmark</a>(5);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            }</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            <a class="code" href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a> = FALSE;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            DialogBox(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, (LPSTR)<a class="code" href="a00956.html#a417ead1470235f472c597f4122fedbfc">IDD_RESULTS</a>, hwnd, (DLGPROC)<a class="code" href="a00959.html#af34bbcb3ef1a306c3e8bf95aba01934a">ResultsDlgProc</a>);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            <span class="keywordflow">if</span> (LOWORD(wParam) &gt;= <a class="code" href="a00962.html#a13eb1bcd4ba7650a3d3827ad2ef87d65">IDM_BENCHFIRST</a> &amp;&amp;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                    LOWORD(wParam) &lt; <a class="code" href="a00962.html#a13eb1bcd4ba7650a3d3827ad2ef87d65">IDM_BENCHFIRST</a> + <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>) {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                <a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a> = LOWORD(wParam) - <a class="code" href="a00962.html#a13eb1bcd4ba7650a3d3827ad2ef87d65">IDM_BENCHFIRST</a>;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].<a class="code" href="a03041.html#ab6f6296e7ed3541ddaeeeec83b92448e">pfnBenchmark</a>(<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[<a class="code" href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a>].cIterations);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            }</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            <span class="keywordflow">return</span> DefFrameProc(hwnd, <a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a>, WM_COMMAND, wParam,</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                    lParam);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keywordflow">case</span> WM_CLOSE:</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        DestroyWindow(hwnd);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordflow">case</span> WM_DESTROY:</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <a class="code" href="a00026.html#a39badb2e0c794d4f7ea20420f89a3b88">PostQuitMessage</a>(0);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">         * Use DefFrameProc() instead of DefWindowProc() since there are</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">         * things that have to be handled differently because of MDI.</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <span class="keywordflow">return</span> DefFrameProc(hwnd, <a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a>, msg, wParam, lParam);</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    }</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00959_source.html#l00305">AboutDlgProc()</a>, <a class="el" href="a00953_source.html#l01711">gabmi</a>, <a class="el" href="a00953_source.html#l01762">gcbmi</a>, <a class="el" href="a03743_source.html#l00324">GetMenu()</a>, <a class="el" href="a03743_source.html#l00493">GetSubMenu()</a>, <a class="el" href="a00959_source.html#l00022">gfAll</a>, <a class="el" href="a00959_source.html#l00019">ghinst</a>, <a class="el" href="a00959_source.html#l00021">ghwndMDIClient</a>, <a class="el" href="a00959_source.html#l00023">gibmi</a>, <a class="el" href="a00962_source.html#l00042">IDD_ABOUT</a>, <a class="el" href="a00956_source.html#l00001">IDD_RESULTS</a>, <a class="el" href="a00962_source.html#l00017">IDM_ABOUT</a>, <a class="el" href="a00962_source.html#l00019">IDM_ALL</a>, <a class="el" href="a00962_source.html#l00024">IDM_BENCHFIRST</a>, <a class="el" href="a00962_source.html#l00022">IDM_PROFILEALL</a>, <a class="el" href="a00956_source.html#l00003">IDM_SAVERESULTS</a>, <a class="el" href="a00962_source.html#l00020">IDM_VIEWRESULTS</a>, <a class="el" href="a00962_source.html#l00052">_BENCHMARKINFO::pfnBenchmark</a>, <a class="el" href="a00026_source.html#l02848">PostQuitMessage()</a>, <a class="el" href="a00959_source.html#l00345">ResultsDlgProc()</a>, <a class="el" href="a00959_source.html#l00499">SaveResults()</a> , 以及 <a class="el" href="a00962_source.html#l00054">_BENCHMARKINFO::usPerIteration</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a>.</p>

</div>
</div>
<a id="a9bc00359f9df12a3116bcbcab41c6861"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bc00359f9df12a3116bcbcab41c6861">&#9670;&nbsp;</a></span>InitializeApplication()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> InitializeApplication </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00409">409</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;{</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    WNDCLASS wc;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;<span class="comment">     * Register the frame class</span></div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    wc.style         = 0;</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    wc.lpfnWndProc   = (WNDPROC)<a class="code" href="a00959.html#a749e3f7421c8c1c569abe8372e99fd24">FrameWndProc</a>;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    wc.cbClsExtra    = 0;</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    wc.cbWndExtra    = 0;</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    wc.hInstance     = <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    wc.hIcon         = LoadIcon(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, <a class="code" href="a00962.html#a8d66c32326f69052f851a1bdf9dd7d57">IDUSERBENCH</a>);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    wc.hCursor       = LoadCursor(NULL, IDC_ARROW);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    wc.hbrBackground = (HBRUSH) (COLOR_APPWORKSPACE + 1);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    wc.lpszMenuName  = <a class="code" href="a00962.html#a8d66c32326f69052f851a1bdf9dd7d57">IDUSERBENCH</a>;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    wc.lpszClassName = <a class="code" href="a00959.html#a7c58ba6afcf635eb20512dd78b895474">szFrame</a>;</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <span class="keywordflow">if</span> (!RegisterClass(&amp;wc))</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160; </div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="comment">     * Register the MDI child class</span></div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    wc.lpfnWndProc   = (WNDPROC)<a class="code" href="a00959.html#a8925d17d0c2781630afd3a7740b9c1ef">MDIChildWndProc</a>;</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    wc.hIcon         = LoadIcon(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, <a class="code" href="a00962.html#a6070c681bef1714523307ed3c68be5df">IDNOTE</a>);</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    wc.lpszMenuName  = NULL;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    wc.cbWndExtra    = 4;</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    wc.lpszClassName = <a class="code" href="a00959.html#a7f97adf6f4b1f41f25ea08c78fa70d40">szChild</a>;</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160; </div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keywordflow">return</span> RegisterClass(&amp;wc);</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>, <a class="el" href="a00959_source.html#l00019">ghinst</a>, <a class="el" href="a00962_source.html#l00011">IDNOTE</a>, <a class="el" href="a00962_source.html#l00010">IDUSERBENCH</a>, <a class="el" href="a00959_source.html#l00245">MDIChildWndProc()</a>, <a class="el" href="a00959_source.html#l00028">szChild</a> , 以及 <a class="el" href="a00959_source.html#l00027">szFrame</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a3b02eaccce9102a03d1af8a6341c1f31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b02eaccce9102a03d1af8a6341c1f31">&#9670;&nbsp;</a></span>InitializeInstance()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> InitializeInstance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00953.html#a392e62da233ed3e2f7c3fd4f487a3896">INT</a>&#160;</td>
          <td class="paramname"><em>nCmdShow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00450">450</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;{</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    MDICREATESTRUCT mcs;</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160; </div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;<span class="comment">     * Create the frame</span></div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <a class="code" href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a> = CreateWindow(<a class="code" href="a00959.html#a7c58ba6afcf635eb20512dd78b895474">szFrame</a>, <span class="stringliteral">&quot;UserBench&quot;</span>,</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;            WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, NULL);</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160; </div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a> == NULL || <a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a> == NULL)</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160; </div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;<span class="comment">     * Load main menu accelerators</span></div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <span class="keywordflow">if</span> (!(<a class="code" href="a00959.html#a28d36667cc5e6468e4d0dd84bbbc5cbf">ghaccel</a> = LoadAccelerators(<a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, <a class="code" href="a00962.html#a8d66c32326f69052f851a1bdf9dd7d57">IDUSERBENCH</a>)))</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160; </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;<span class="comment">     * Display the frame window</span></div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    ShowWindow(<a class="code" href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a>, SW_SHOWMAXIMIZED);</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160; </div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;<span class="comment">     * Create MDI child window.</span></div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    mcs.szClass = <a class="code" href="a00959.html#a7f97adf6f4b1f41f25ea08c78fa70d40">szChild</a>;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    mcs.szTitle = <span class="stringliteral">&quot;Untitled&quot;</span>;</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;    mcs.hOwner  = <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;    mcs.x = mcs.cx = CW_USEDEFAULT;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    mcs.y = mcs.cy = CW_USEDEFAULT;</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    mcs.style = WS_MAXIMIZE;</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160; </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;    SendMessage(<a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a>, WM_MDICREATE, 0, (LONG)(LPSTR)&amp;mcs);</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160; </div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00959_source.html#l00020">ghaccel</a>, <a class="el" href="a00959_source.html#l00019">ghinst</a>, <a class="el" href="a00959_source.html#l00021">ghwndFrame</a>, <a class="el" href="a00959_source.html#l00021">ghwndMDIClient</a>, <a class="el" href="a00962_source.html#l00010">IDUSERBENCH</a>, <a class="el" href="a00959_source.html#l00028">szChild</a> , 以及 <a class="el" href="a00959_source.html#l00027">szFrame</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a8925d17d0c2781630afd3a7740b9c1ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8925d17d0c2781630afd3a7740b9c1ef">&#9670;&nbsp;</a></span>MDIChildWndProc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> MDIChildWndProc </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00245">245</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;{</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    HWND hwndEdit;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="keywordflow">switch</span> (msg) {</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordflow">case</span> WM_CREATE:</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="comment">         * Create an edit control</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        hwndEdit = CreateWindow(<span class="stringliteral">&quot;edit&quot;</span>, NULL,</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                WS_CHILD | WS_HSCROLL | WS_MAXIMIZE | WS_VISIBLE |</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                WS_VSCROLL | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE,</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                0, 0, 0, 0, hwnd, (HMENU)<a class="code" href="a00962.html#af36486f1c7fbf8dbe9754e328ab37bfe">ID_EDIT</a>, <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>, NULL);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="comment">         * Remember the window handle and initialize some window attributes</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        SetWindowLong(hwnd, <a class="code" href="a00962.html#a9f78fa658d82307ed42fd2e80af60249">GWL_HWNDEDIT</a>, (LONG)hwndEdit);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        SetFocus(hwndEdit);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <span class="keywordflow">case</span> WM_CLOSE:</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keywordflow">case</span> WM_SIZE: {</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        RECT rc;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="comment">         * On creation or resize, size the edit control.</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        hwndEdit = (HWND)GetWindowLong(hwnd, <a class="code" href="a00962.html#a9f78fa658d82307ed42fd2e80af60249">GWL_HWNDEDIT</a>);</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <a class="code" href="a03743.html#a45668f73deb77bee5ef8243d47024212">GetClientRect</a>(hwnd, &amp;rc);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        MoveWindow(hwndEdit, rc.left, rc.top,</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                rc.right - rc.left, rc.bottom - rc.top, TRUE);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        <span class="keywordflow">return</span> DefMDIChildProc(hwnd, msg, wParam, lParam);</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordflow">case</span> WM_SETFOCUS:</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        SetFocus((HWND)GetWindowLong(hwnd, <a class="code" href="a00962.html#a9f78fa658d82307ed42fd2e80af60249">GWL_HWNDEDIT</a>));</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160; </div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;        <span class="keywordflow">return</span> DefMDIChildProc(hwnd, msg, wParam, lParam);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    }</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03743_source.html#l00731">GetClientRect()</a>, <a class="el" href="a00959_source.html#l00019">ghinst</a>, <a class="el" href="a00962_source.html#l00009">GWL_HWNDEDIT</a> , 以及 <a class="el" href="a00962_source.html#l00030">ID_EDIT</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a>.</p>

</div>
</div>
<a id="af34bbcb3ef1a306c3e8bf95aba01934a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af34bbcb3ef1a306c3e8bf95aba01934a">&#9670;&nbsp;</a></span>ResultsDlgProc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> ResultsDlgProc </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wParam</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LONG&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00345">345</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;{</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordtype">char</span> szT[80];</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    BOOL fResults;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keywordtype">int</span> aiT[1];</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordflow">switch</span> (msg) {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">case</span> WM_INITDIALOG:</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        aiT[0] = 190;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        SendDlgItemMessage(hwnd, <a class="code" href="a00956.html#ae9b89a2dc93bb2cb1712b4e0315947fc">IDC_RESULTSLIST</a>, LB_SETTABSTOPS, 1,</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                (LONG)(LPSTR)aiT);</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        fResults = FALSE;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; i++) {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].usPerIteration == 0)</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160; </div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            wsprintf(szT, <span class="stringliteral">&quot;%s\t%ld&quot;</span>, (LPSTR)<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].pszBenchTitle,</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                    <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].usPerIteration);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;            SendDlgItemMessage(hwnd, <a class="code" href="a00956.html#ae9b89a2dc93bb2cb1712b4e0315947fc">IDC_RESULTSLIST</a>, LB_ADDSTRING, 0,</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                    (LONG)(LPSTR)szT);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;            fResults = TRUE;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        }</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160; </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        <span class="keywordflow">if</span> (!fResults)</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;            SendDlgItemMessage(hwnd, <a class="code" href="a00956.html#ae9b89a2dc93bb2cb1712b4e0315947fc">IDC_RESULTSLIST</a>, LB_ADDSTRING, 0,</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;                    (LONG)(LPSTR)<span class="stringliteral">&quot;No results have been generated yet!&quot;</span>);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160; </div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordflow">case</span> WM_COMMAND:</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        <span class="keywordflow">switch</span> (LOWORD(wParam)) {</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        <span class="keywordflow">case</span> IDOK:</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;            <a class="code" href="a00098.html#aa5a68d879547f0460331c71bee94763a">EndDialog</a>(hwnd, 0);</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160; </div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="a00956.html#a4c546dd348aa5f1233485f2214a24a23">IDM_SAVERESULTS</a>:</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;            <a class="code" href="a00959.html#a4370332d227c6b02209ca8451e38f1ac">SaveResults</a>(hwnd);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160; </div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        }</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160; </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    }</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00098_source.html#l00022">EndDialog()</a>, <a class="el" href="a00953_source.html#l01711">gabmi</a>, <a class="el" href="a00953_source.html#l01762">gcbmi</a>, <a class="el" href="a00956_source.html#l00002">IDC_RESULTSLIST</a>, <a class="el" href="a00956_source.html#l00003">IDM_SAVERESULTS</a> , 以及 <a class="el" href="a00959_source.html#l00499">SaveResults()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>.</p>

</div>
</div>
<a id="a4370332d227c6b02209ca8451e38f1ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4370332d227c6b02209ca8451e38f1ac">&#9670;&nbsp;</a></span>SaveResults()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID SaveResults </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00499">499</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;{</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="keyword">static</span> OPENFILENAME ofn;</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">char</span> szFilename[80];</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <span class="keywordtype">char</span> szT[80];</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;    <span class="keywordtype">int</span> i, hfile;</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160; </div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;<span class="comment">//    if (ofn.lStructSize != sizeof(ofn)) {</span></div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <span class="keyword">sizeof</span>(ofn); i++)</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;            ((<span class="keywordtype">char</span> *)&amp;ofn)[i] = 0;    <span class="comment">// clear out the OPENFILENAME struct</span></div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160; </div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;        ofn.lStructSize = <span class="keyword">sizeof</span>(ofn);</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        ofn.hwndOwner = hwnd;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;        ofn.hInstance = <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a>;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160; </div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        ofn.lpstrFilter = <span class="stringliteral">&quot;UserBench Output\0*.ubo\0All Files\0*.*\0&quot;</span>;</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        ofn.lpstrCustomFilter = NULL;</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    ofn.nMaxCustFilter = 0;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        ofn.nFilterIndex = 0;</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        ofn.lpstrFileTitle = NULL;</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        ofn.nMaxFileTitle = 0;</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        ofn.lpstrInitialDir = <span class="stringliteral">&quot;c:\\&quot;</span>;</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        ofn.Flags = 0;</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;        ofn.lpstrDefExt = NULL;</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    ofn.lCustData = 0;</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;        ofn.lpfnHook = NULL;</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        ofn.lpTemplateName = NULL;</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        lstrcpy(szFilename, <span class="stringliteral">&quot;timings.ubo&quot;</span>);</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;<span class="comment">//    }</span></div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160; </div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;    ofn.lpstrFile = szFilename;</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;    ofn.nMaxFile = <span class="keyword">sizeof</span>(szFilename);</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    ofn.lpstrTitle = <span class="stringliteral">&quot;Save As&quot;</span>;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160; </div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;    <span class="keywordflow">if</span> (!GetSaveFileName(&amp;ofn))</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160; </div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    hfile = _lcreat(szFilename, 0);</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    <span class="keywordflow">if</span> (hfile == -1)</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160; </div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;<span class="comment">     * Write out the build information and current date.</span></div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;<span class="preprocessor">#ifdef LATER</span></div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160; </div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    <a class="code" href="a00959.html#a1fb03e86a16d1514682dc6195682ad63">WriteResults</a>(hfile);</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160; </div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    _lclose(hfile);</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00959_source.html#l00019">ghinst</a> , 以及 <a class="el" href="a00959_source.html#l00597">WriteResults()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a> , 以及 <a class="el" href="a00959_source.html#l00345">ResultsDlgProc()</a>.</p>

</div>
</div>
<a id="ae7a0584e037e6a30ab6bc3dd5268d746"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7a0584e037e6a30ab6bc3dd5268d746">&#9670;&nbsp;</a></span>WinMain()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int PASCAL WinMain </td>
          <td>(</td>
          <td class="paramtype">HINSTANCE&#160;</td>
          <td class="paramname"><em>hinst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HINSTANCE&#160;</td>
          <td class="paramname"><em>hinstPrev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPSTR&#160;</td>
          <td class="paramname"><em>lpCmdLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nCmdShow</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00048">48</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    MSG msg;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">int</span> RemoveCursor = TRUE;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a> = hinst;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// if command line option exist</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">if</span> (lpCmdLine[0]) {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    LPSTR cmdArg;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">if</span> ( cmdArg = strstr ( lpCmdLine, <span class="stringliteral">&quot;-a&quot;</span>))     <span class="comment">//automation switch</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <a class="code" href="a00959.html#aef887e113604a59d04abc0a370ff71bf">AutoRun</a> = TRUE;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">if</span> ( cmdArg = strstr ( lpCmdLine, <span class="stringliteral">&quot;-m&quot;</span>))     <span class="comment">//cursor stays</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        RemoveCursor = FALSE;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">     * If this is the first instance of the app. register window classes</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">if</span> (hinstPrev == NULL)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00959.html#a9bc00359f9df12a3116bcbcab41c6861">InitializeApplication</a>())</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">     * Create the frame and do other initialization</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00959.html#a3b02eaccce9102a03d1af8a6341c1f31">InitializeInstance</a>(nCmdShow))</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">if</span> (RemoveCursor)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="a00026.html#afdef4d6332f08210a2f6a559ceb1cdd9">ShowCursor</a>(0);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment">     * Enter main message loop</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="keywordflow">while</span> (<a class="code" href="a00356.html#a23db7caf54fdea982109fee215acbe14">GetMessage</a>(&amp;msg, NULL, 0, 0)) {</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00959.html#aef887e113604a59d04abc0a370ff71bf">AutoRun</a>) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="a00959.html#ab736c696a859a7874409ddedf6232149">AutoTest</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    }</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">         * If a keyboard message is for the MDI, let the MDI client</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">         * take care of it.  Otherwise, check to see if it&#39;s a normal</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">         * accelerator key (like F3 = find next).  Otherwise, just handle</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">         * the message as usual.</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a00200.html#aaa6de7d4c7a0d0f485d7769181b4d568">TranslateMDISysAccel</a>(<a class="code" href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a>, &amp;msg) &amp;&amp;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                !TranslateAccelerator(<a class="code" href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a>, <a class="code" href="a00959.html#a28d36667cc5e6468e4d0dd84bbbc5cbf">ghaccel</a>, &amp;msg)) {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            <a class="code" href="a03611.html#af4624f95891ff61f5e8c6c1c386f16fe">TranslateMessage</a>(&amp;msg);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;            DispatchMessage(&amp;msg);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        }</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    }</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00959.html#aef887e113604a59d04abc0a370ff71bf">AutoRun</a>)</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <a class="code" href="a00026.html#a39badb2e0c794d4f7ea20420f89a3b88">PostQuitMessage</a>(0);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00959_source.html#l00025">AutoRun</a>, <a class="el" href="a00959_source.html#l00563">AutoTest()</a>, <a class="el" href="a00356_source.html#l00276">GetMessage()</a>, <a class="el" href="a00959_source.html#l00020">ghaccel</a>, <a class="el" href="a00959_source.html#l00019">ghinst</a>, <a class="el" href="a00959_source.html#l00021">ghwndFrame</a>, <a class="el" href="a00959_source.html#l00021">ghwndMDIClient</a>, <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a>, <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a>, <a class="el" href="a00026_source.html#l02848">PostQuitMessage()</a>, <a class="el" href="a00026_source.html#l02972">ShowCursor()</a>, <a class="el" href="a00200_source.html#l00125">TranslateMDISysAccel()</a> , 以及 <a class="el" href="a03611_source.html#l01017">TranslateMessage()</a>.</p>

</div>
</div>
<a id="a1fb03e86a16d1514682dc6195682ad63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fb03e86a16d1514682dc6195682ad63">&#9670;&nbsp;</a></span>WriteResults()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void WriteResults </td>
          <td>(</td>
          <td class="paramtype">HFILE&#160;</td>
          <td class="paramname"><em>hFile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00597">597</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;{</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <span class="keywordtype">char</span> szT[80];</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    OSVERSIONINFO Win32VersionInformation;</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    MEMORYSTATUS MemoryStatus;</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <span class="keywordtype">char</span> *pszOSName;</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160; </div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;<span class="comment">     * Write out the build information and current date.</span></div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    Win32VersionInformation.dwOSVersionInfoSize = <span class="keyword">sizeof</span>(Win32VersionInformation);</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keywordflow">if</span> (GetVersionEx(&amp;Win32VersionInformation))</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    {</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        <span class="keywordflow">switch</span> (Win32VersionInformation.dwPlatformId)</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;        {</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;            <span class="keywordflow">case</span> VER_PLATFORM_WIN32s:</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;                pszOSName = <span class="stringliteral">&quot;WIN32S&quot;</span>;</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;            <span class="keywordflow">case</span> VER_PLATFORM_WIN32_WINDOWS:</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;                pszOSName = <span class="stringliteral">&quot;Windows 95&quot;</span>;</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;            <span class="keywordflow">case</span> VER_PLATFORM_WIN32_NT:</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                pszOSName = <span class="stringliteral">&quot;Windows NT&quot;</span>;</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                pszOSName = <span class="stringliteral">&quot;Windows ???&quot;</span>;</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        }</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;        wsprintf(szT, <span class="stringliteral">&quot;%s Version %d.%d Build %d &quot;</span>, pszOSName,</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;               Win32VersionInformation.dwMajorVersion,</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;               Win32VersionInformation.dwMinorVersion,</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;               Win32VersionInformation.dwBuildNumber);</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;        _lwrite(hFile, szT, lstrlen(szT));</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160; </div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        MemoryStatus.dwLength = <span class="keyword">sizeof</span>(MEMORYSTATUS);</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        GlobalMemoryStatus(&amp;MemoryStatus);</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;        wsprintf(szT, <span class="stringliteral">&quot;Physical Memory = %dKB\n&quot;</span>, MemoryStatus.dwTotalPhys/1024);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;        _lwrite(hFile, szT, lstrlen(szT));</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160; </div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;    lstrcpy(szT, <span class="stringliteral">&quot;Function\tTime Per Iteration (microseconds)\r\n\r\n&quot;</span>);</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    _lwrite(hFile, szT, lstrlen(szT));</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160; </div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a>; i++) {</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160; </div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;        wsprintf(szT, <span class="stringliteral">&quot;%s\t%ld\r\n&quot;</span>, (LPSTR)<a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].pszBenchTitle,</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            <a class="code" href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a>[i].usPerIteration);</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160; </div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        _lwrite(hFile, szT, lstrlen(szT));</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160; </div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    }</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00953_source.html#l01711">gabmi</a> , 以及 <a class="el" href="a00953_source.html#l01762">gcbmi</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00563">AutoTest()</a> , 以及 <a class="el" href="a00959_source.html#l00499">SaveResults()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="aef887e113604a59d04abc0a370ff71bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef887e113604a59d04abc0a370ff71bf">&#9670;&nbsp;</a></span>AutoRun</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AutoRun = FALSE</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00025">25</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a9704cdbd2f48e35f48487a9cb12c1886"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9704cdbd2f48e35f48487a9cb12c1886">&#9670;&nbsp;</a></span>gabmi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00962.html#a538ee397e57bb2513177d3464ab5b21f">BENCHMARKINFO</a> gabmi[]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00953_source.html">bench.c</a> 第 <a class="el" href="a00953_source.html#l01711">1711</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00563">AutoTest()</a>, <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>, <a class="el" href="a00959_source.html#l00345">ResultsDlgProc()</a>, <a class="el" href="a00953_source.html#l01774">StopDataCollector()</a> , 以及 <a class="el" href="a00959_source.html#l00597">WriteResults()</a>.</p>

</div>
</div>
<a id="aa7c2f1784ebd6af429d052a6060a56ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7c2f1784ebd6af429d052a6060a56ed">&#9670;&nbsp;</a></span>gfAll</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL gfAll = FALSE</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00022">22</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00563">AutoTest()</a>, <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a> , 以及 <a class="el" href="a00953_source.html#l01774">StopDataCollector()</a>.</p>

</div>
</div>
<a id="a28d36667cc5e6468e4d0dd84bbbc5cbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28d36667cc5e6468e4d0dd84bbbc5cbf">&#9670;&nbsp;</a></span>ghaccel</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HANDLE ghaccel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00020">20</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a> , 以及 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a85f2e3a9a4aa2644b6d0d7fda55d5cae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85f2e3a9a4aa2644b6d0d7fda55d5cae">&#9670;&nbsp;</a></span>ghinst</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HANDLE ghinst</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00019">19</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>, <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a>, <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a>, <a class="el" href="a00959_source.html#l00245">MDIChildWndProc()</a>, <a class="el" href="a00953_source.html#l00222">ProfAvgDlgCreate()</a>, <a class="el" href="a00953_source.html#l00248">ProfAvgDlgCreateDestroy()</a>, <a class="el" href="a00953_source.html#l00332">ProfAvgDlgCreateDestroyEmpty()</a>, <a class="el" href="a00953_source.html#l00304">ProfAvgDlgCreateDestroyNoFont()</a>, <a class="el" href="a00953_source.html#l00276">ProfAvgDlgCreateDestroyNoMenu()</a>, <a class="el" href="a00953_source.html#l00196">ProfAvgDlgDraw()</a>, <a class="el" href="a00953_source.html#l01365">ProfCallback()</a>, <a class="el" href="a00953_source.html#l00125">ProfClassGroup()</a>, <a class="el" href="a00953_source.html#l00656">ProfCreateDestroyButton()</a>, <a class="el" href="a00953_source.html#l00404">ProfCreateDestroyChildWindow()</a>, <a class="el" href="a00953_source.html#l00703">ProfCreateDestroyCombobox()</a>, <a class="el" href="a00953_source.html#l00750">ProfCreateDestroyEdit()</a>, <a class="el" href="a00953_source.html#l00609">ProfCreateDestroyListbox()</a>, <a class="el" href="a00953_source.html#l00844">ProfCreateDestroyScrollbar()</a>, <a class="el" href="a00953_source.html#l00797">ProfCreateDestroyStatic()</a>, <a class="el" href="a00953_source.html#l00360">ProfCreateDestroyWindow()</a>, <a class="el" href="a00953_source.html#l01316">ProfDispatchMessage()</a>, <a class="el" href="a00953_source.html#l00515">ProfGetWindowLong()</a>, <a class="el" href="a00953_source.html#l00891">ProfListboxInsert1()</a>, <a class="el" href="a00953_source.html#l00944">ProfListboxInsert2()</a>, <a class="el" href="a00953_source.html#l00998">ProfListboxInsert3()</a>, <a class="el" href="a00953_source.html#l00091">ProfRegisterClass()</a>, <a class="el" href="a00953_source.html#l01405">ProfSendMessage()</a>, <a class="el" href="a00953_source.html#l01445">ProfSendMessageAA()</a>, <a class="el" href="a00953_source.html#l01484">ProfSendMessageAW()</a>, <a class="el" href="a00953_source.html#l01673">ProfSetHook()</a>, <a class="el" href="a00953_source.html#l00562">ProfSetWindowLong()</a>, <a class="el" href="a00959_source.html#l00499">SaveResults()</a>, <a class="el" href="a00953_source.html#l01527">SendMessageDiffThreadFunc()</a> , 以及 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a712c6a40b719d9342a3a16e3a5d73df1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a712c6a40b719d9342a3a16e3a5d73df1">&#9670;&nbsp;</a></span>ghwndFrame</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HWND ghwndFrame = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00021">21</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a>, <a class="el" href="a00953_source.html#l00222">ProfAvgDlgCreate()</a>, <a class="el" href="a00953_source.html#l00248">ProfAvgDlgCreateDestroy()</a>, <a class="el" href="a00953_source.html#l00332">ProfAvgDlgCreateDestroyEmpty()</a>, <a class="el" href="a00953_source.html#l00304">ProfAvgDlgCreateDestroyNoFont()</a>, <a class="el" href="a00953_source.html#l00276">ProfAvgDlgCreateDestroyNoMenu()</a>, <a class="el" href="a00953_source.html#l00196">ProfAvgDlgDraw()</a>, <a class="el" href="a00953_source.html#l00125">ProfClassGroup()</a>, <a class="el" href="a00953_source.html#l00167">ProfClipboardGroup()</a> , 以及 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="a1446ae6b35424dfac9215b4ff607328e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1446ae6b35424dfac9215b4ff607328e">&#9670;&nbsp;</a></span>ghwndMDIClient</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HWND ghwndMDIClient = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00021">21</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a>, <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a> , 以及 <a class="el" href="a00959_source.html#l00048">WinMain()</a>.</p>

</div>
</div>
<a id="af1f4823fbb5e586752d1a82032a9d731"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f4823fbb5e586752d1a82032a9d731">&#9670;&nbsp;</a></span>gibmi</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gibmi</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00023">23</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00563">AutoTest()</a>, <a class="el" href="a00959_source.html#l00128">FrameWndProc()</a> , 以及 <a class="el" href="a00953_source.html#l01774">StopDataCollector()</a>.</p>

</div>
</div>
<a id="a7f97adf6f4b1f41f25ea08c78fa70d40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f97adf6f4b1f41f25ea08c78fa70d40">&#9670;&nbsp;</a></span>szChild</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a> szChild[] = &quot;child&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00028">28</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a> , 以及 <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a>.</p>

</div>
</div>
<a id="a7c58ba6afcf635eb20512dd78b895474"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c58ba6afcf635eb20512dd78b895474">&#9670;&nbsp;</a></span>szFrame</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00953.html#aebb9e13210d88d43e32e735ada43a425">CHAR</a> szFrame[] = &quot;frame&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00959_source.html">usrbench.c</a> 第 <a class="el" href="a00959_source.html#l00027">27</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00959_source.html#l00409">InitializeApplication()</a> , 以及 <a class="el" href="a00959_source.html#l00450">InitializeInstance()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00959_html_a4370332d227c6b02209ca8451e38f1ac"><div class="ttname"><a href="a00959.html#a4370332d227c6b02209ca8451e38f1ac">SaveResults</a></div><div class="ttdeci">VOID SaveResults(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00499">usrbench.c:499</a></div></div>
<div class="ttc" id="aa00959_html_ab736c696a859a7874409ddedf6232149"><div class="ttname"><a href="a00959.html#ab736c696a859a7874409ddedf6232149">AutoTest</a></div><div class="ttdeci">VOID AutoTest(void)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00563">usrbench.c:563</a></div></div>
<div class="ttc" id="aa00959_html_a8925d17d0c2781630afd3a7740b9c1ef"><div class="ttname"><a href="a00959.html#a8925d17d0c2781630afd3a7740b9c1ef">MDIChildWndProc</a></div><div class="ttdeci">LONG APIENTRY MDIChildWndProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00245">usrbench.c:245</a></div></div>
<div class="ttc" id="aa00959_html_af1f4823fbb5e586752d1a82032a9d731"><div class="ttname"><a href="a00959.html#af1f4823fbb5e586752d1a82032a9d731">gibmi</a></div><div class="ttdeci">int gibmi</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00023">usrbench.c:23</a></div></div>
<div class="ttc" id="aa03611_html_af4624f95891ff61f5e8c6c1c386f16fe"><div class="ttname"><a href="a03611.html#af4624f95891ff61f5e8c6c1c386f16fe">TranslateMessage</a></div><div class="ttdeci">BOOL TranslateMessage(CONST MSG *pmsg)</div><div class="ttdef"><b>Definition:</b> <a href="a03611_source.html#l01017">client/ntstubs.c:1017</a></div></div>
<div class="ttc" id="aa00962_html_aef6bd4fe1a5a9bc20ec2627f37ca815e"><div class="ttname"><a href="a00962.html#aef6bd4fe1a5a9bc20ec2627f37ca815e">IDM_VIEWRESULTS</a></div><div class="ttdeci">#define IDM_VIEWRESULTS</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00020">usrbench.h:20</a></div></div>
<div class="ttc" id="aa00959_html_a7c58ba6afcf635eb20512dd78b895474"><div class="ttname"><a href="a00959.html#a7c58ba6afcf635eb20512dd78b895474">szFrame</a></div><div class="ttdeci">CHAR szFrame[]</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00027">usrbench.c:27</a></div></div>
<div class="ttc" id="aa03041_html_a505f13dd92b3c91ba73c8dc86856fdcc"><div class="ttname"><a href="a03041.html#a505f13dd92b3c91ba73c8dc86856fdcc">_BENCHMARKINFO::usPerIteration</a></div><div class="ttdeci">LONG usPerIteration</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00054">usrbench.h:54</a></div></div>
<div class="ttc" id="aa00956_html_a417ead1470235f472c597f4122fedbfc"><div class="ttname"><a href="a00956.html#a417ead1470235f472c597f4122fedbfc">IDD_RESULTS</a></div><div class="ttdeci">#define IDD_RESULTS</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00001">dialogs.h:1</a></div></div>
<div class="ttc" id="aa00959_html_a9bc00359f9df12a3116bcbcab41c6861"><div class="ttname"><a href="a00959.html#a9bc00359f9df12a3116bcbcab41c6861">InitializeApplication</a></div><div class="ttdeci">BOOL APIENTRY InitializeApplication(void)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00409">usrbench.c:409</a></div></div>
<div class="ttc" id="aa00962_html_a74dbd3f210d99eb11318cd83e1475abb"><div class="ttname"><a href="a00962.html#a74dbd3f210d99eb11318cd83e1475abb">IDD_ABOUT</a></div><div class="ttdeci">#define IDD_ABOUT</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00042">usrbench.h:42</a></div></div>
<div class="ttc" id="aa00959_html_a9704cdbd2f48e35f48487a9cb12c1886"><div class="ttname"><a href="a00959.html#a9704cdbd2f48e35f48487a9cb12c1886">gabmi</a></div><div class="ttdeci">BENCHMARKINFO gabmi[]</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l01711">bench.c:1711</a></div></div>
<div class="ttc" id="aa00959_html_a28d36667cc5e6468e4d0dd84bbbc5cbf"><div class="ttname"><a href="a00959.html#a28d36667cc5e6468e4d0dd84bbbc5cbf">ghaccel</a></div><div class="ttdeci">HANDLE ghaccel</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00020">usrbench.c:20</a></div></div>
<div class="ttc" id="aa03743_html_a45668f73deb77bee5ef8243d47024212"><div class="ttname"><a href="a03743.html#a45668f73deb77bee5ef8243d47024212">GetClientRect</a></div><div class="ttdeci">BOOL GetClientRect(HWND hwnd, LPRECT prect)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00731">client/wow.c:731</a></div></div>
<div class="ttc" id="aa00962_html_a09fa3e46409bbe2ae7c8f417ae066f90"><div class="ttname"><a href="a00962.html#a09fa3e46409bbe2ae7c8f417ae066f90">IDM_PROFILEALL</a></div><div class="ttdeci">#define IDM_PROFILEALL</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00022">usrbench.h:22</a></div></div>
<div class="ttc" id="aa00962_html_a8d66c32326f69052f851a1bdf9dd7d57"><div class="ttname"><a href="a00962.html#a8d66c32326f69052f851a1bdf9dd7d57">IDUSERBENCH</a></div><div class="ttdeci">#define IDUSERBENCH</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00010">usrbench.h:10</a></div></div>
<div class="ttc" id="aa00026_html_afdef4d6332f08210a2f6a559ceb1cdd9"><div class="ttname"><a href="a00026.html#afdef4d6332f08210a2f6a559ceb1cdd9">ShowCursor</a></div><div class="ttdeci">int ShowCursor(BOOL bShow)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l02972">client.c:2972</a></div></div>
<div class="ttc" id="aa00962_html_a13eb1bcd4ba7650a3d3827ad2ef87d65"><div class="ttname"><a href="a00962.html#a13eb1bcd4ba7650a3d3827ad2ef87d65">IDM_BENCHFIRST</a></div><div class="ttdeci">#define IDM_BENCHFIRST</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00024">usrbench.h:24</a></div></div>
<div class="ttc" id="aa00026_html_a39badb2e0c794d4f7ea20420f89a3b88"><div class="ttname"><a href="a00026.html#a39badb2e0c794d4f7ea20420f89a3b88">PostQuitMessage</a></div><div class="ttdeci">VOID PostQuitMessage(int nExitCode)</div><div class="ttdef"><b>Definition:</b> <a href="a00026_source.html#l02848">client.c:2848</a></div></div>
<div class="ttc" id="aa03743_html_ad4d1c0493ddaed6f7a75c7cdab06756d"><div class="ttname"><a href="a03743.html#ad4d1c0493ddaed6f7a75c7cdab06756d">GetSubMenu</a></div><div class="ttdeci">HMENU GetSubMenu(HMENU hMenu, int nPos)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00493">client/wow.c:493</a></div></div>
<div class="ttc" id="aa00959_html_aa7c2f1784ebd6af429d052a6060a56ed"><div class="ttname"><a href="a00959.html#aa7c2f1784ebd6af429d052a6060a56ed">gfAll</a></div><div class="ttdeci">BOOL gfAll</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00022">usrbench.c:22</a></div></div>
<div class="ttc" id="aa00959_html_a749e3f7421c8c1c569abe8372e99fd24"><div class="ttname"><a href="a00959.html#a749e3f7421c8c1c569abe8372e99fd24">FrameWndProc</a></div><div class="ttdeci">LONG APIENTRY FrameWndProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00128">usrbench.c:128</a></div></div>
<div class="ttc" id="aa00200_html_aaa6de7d4c7a0d0f485d7769181b4d568"><div class="ttname"><a href="a00200.html#aaa6de7d4c7a0d0f485d7769181b4d568">TranslateMDISysAccel</a></div><div class="ttdeci">BOOL TranslateMDISysAccel(HWND hwnd, LPMSG lpMsg)</div><div class="ttdef"><b>Definition:</b> <a href="a00200_source.html#l00125">mdiwin.c:125</a></div></div>
<div class="ttc" id="aa00962_html_af36486f1c7fbf8dbe9754e328ab37bfe"><div class="ttname"><a href="a00962.html#af36486f1c7fbf8dbe9754e328ab37bfe">ID_EDIT</a></div><div class="ttdeci">#define ID_EDIT</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00030">usrbench.h:30</a></div></div>
<div class="ttc" id="aa00962_html_a589e0105bc3e8681893dbf51210ceeec"><div class="ttname"><a href="a00962.html#a589e0105bc3e8681893dbf51210ceeec">IDM_ABOUT</a></div><div class="ttdeci">#define IDM_ABOUT</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00017">usrbench.h:17</a></div></div>
<div class="ttc" id="aa00959_html_a712c6a40b719d9342a3a16e3a5d73df1"><div class="ttname"><a href="a00959.html#a712c6a40b719d9342a3a16e3a5d73df1">ghwndFrame</a></div><div class="ttdeci">HWND ghwndFrame</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00021">usrbench.c:21</a></div></div>
<div class="ttc" id="aa00356_html_a23db7caf54fdea982109fee215acbe14"><div class="ttname"><a href="a00356.html#a23db7caf54fdea982109fee215acbe14">GetMessage</a></div><div class="ttdeci">BOOL APIENTRY GetMessage(LPMSG pmsg, HWND hwnd, UINT wMsgFilterMin, UINT wMsgFilterMax)</div><div class="ttdef"><b>Definition:</b> <a href="a00356_source.html#l00276">ntcftxt.h:276</a></div></div>
<div class="ttc" id="aa00962_html_a9f78fa658d82307ed42fd2e80af60249"><div class="ttname"><a href="a00962.html#a9f78fa658d82307ed42fd2e80af60249">GWL_HWNDEDIT</a></div><div class="ttdeci">#define GWL_HWNDEDIT</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00009">usrbench.h:9</a></div></div>
<div class="ttc" id="aa03041_html_ab6f6296e7ed3541ddaeeeec83b92448e"><div class="ttname"><a href="a03041.html#ab6f6296e7ed3541ddaeeeec83b92448e">_BENCHMARKINFO::pfnBenchmark</a></div><div class="ttdeci">void(* pfnBenchmark)(int cIterations)</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00052">usrbench.h:52</a></div></div>
<div class="ttc" id="aa00959_html_abb7ecd30dcd5aeb6e2dcf98a3be52f7e"><div class="ttname"><a href="a00959.html#abb7ecd30dcd5aeb6e2dcf98a3be52f7e">AboutDlgProc</a></div><div class="ttdeci">BOOL APIENTRY AboutDlgProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00305">usrbench.c:305</a></div></div>
<div class="ttc" id="aa00953_html_ac28ab07085909d79530f64d32a8fc27e"><div class="ttname"><a href="a00953.html#ac28ab07085909d79530f64d32a8fc27e">gcbmi</a></div><div class="ttdeci">int gcbmi</div><div class="ttdef"><b>Definition:</b> <a href="a00953_source.html#l01762">bench.c:1762</a></div></div>
<div class="ttc" id="aa00959_html_af34bbcb3ef1a306c3e8bf95aba01934a"><div class="ttname"><a href="a00959.html#af34bbcb3ef1a306c3e8bf95aba01934a">ResultsDlgProc</a></div><div class="ttdeci">BOOL APIENTRY ResultsDlgProc(HWND hwnd, UINT msg, UINT wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00345">usrbench.c:345</a></div></div>
<div class="ttc" id="aa00959_html_a1446ae6b35424dfac9215b4ff607328e"><div class="ttname"><a href="a00959.html#a1446ae6b35424dfac9215b4ff607328e">ghwndMDIClient</a></div><div class="ttdeci">HWND ghwndMDIClient</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00021">usrbench.c:21</a></div></div>
<div class="ttc" id="aa00956_html_ae9b89a2dc93bb2cb1712b4e0315947fc"><div class="ttname"><a href="a00956.html#ae9b89a2dc93bb2cb1712b4e0315947fc">IDC_RESULTSLIST</a></div><div class="ttdeci">#define IDC_RESULTSLIST</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00002">dialogs.h:2</a></div></div>
<div class="ttc" id="aa00959_html_a7f97adf6f4b1f41f25ea08c78fa70d40"><div class="ttname"><a href="a00959.html#a7f97adf6f4b1f41f25ea08c78fa70d40">szChild</a></div><div class="ttdeci">CHAR szChild[]</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00028">usrbench.c:28</a></div></div>
<div class="ttc" id="aa00959_html_aef887e113604a59d04abc0a370ff71bf"><div class="ttname"><a href="a00959.html#aef887e113604a59d04abc0a370ff71bf">AutoRun</a></div><div class="ttdeci">int AutoRun</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00025">usrbench.c:25</a></div></div>
<div class="ttc" id="aa00959_html_a1fb03e86a16d1514682dc6195682ad63"><div class="ttname"><a href="a00959.html#a1fb03e86a16d1514682dc6195682ad63">WriteResults</a></div><div class="ttdeci">void WriteResults(HFILE)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00597">usrbench.c:597</a></div></div>
<div class="ttc" id="aa00959_html_a3b02eaccce9102a03d1af8a6341c1f31"><div class="ttname"><a href="a00959.html#a3b02eaccce9102a03d1af8a6341c1f31">InitializeInstance</a></div><div class="ttdeci">BOOL APIENTRY InitializeInstance(INT nCmdShow)</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00450">usrbench.c:450</a></div></div>
<div class="ttc" id="aa00098_html_aa5a68d879547f0460331c71bee94763a"><div class="ttname"><a href="a00098.html#aa5a68d879547f0460331c71bee94763a">EndDialog</a></div><div class="ttdeci">BOOL EndDialog(HWND hwnd, int result)</div><div class="ttdef"><b>Definition:</b> <a href="a00098_source.html#l00022">dlgend.c:22</a></div></div>
<div class="ttc" id="aa03743_html_ac9cce9d0a590697fbfd45e1d983b1454"><div class="ttname"><a href="a03743.html#ac9cce9d0a590697fbfd45e1d983b1454">GetMenu</a></div><div class="ttdeci">HMENU GetMenu(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00324">client/wow.c:324</a></div></div>
<div class="ttc" id="aa00962_html_a6070c681bef1714523307ed3c68be5df"><div class="ttname"><a href="a00962.html#a6070c681bef1714523307ed3c68be5df">IDNOTE</a></div><div class="ttdeci">#define IDNOTE</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00011">usrbench.h:11</a></div></div>
<div class="ttc" id="aa00962_html_a1aab8591ea67205af25b67cf6ff71103"><div class="ttname"><a href="a00962.html#a1aab8591ea67205af25b67cf6ff71103">IDM_ALL</a></div><div class="ttdeci">#define IDM_ALL</div><div class="ttdef"><b>Definition:</b> <a href="a00962_source.html#l00019">usrbench.h:19</a></div></div>
<div class="ttc" id="aa00959_html_a85f2e3a9a4aa2644b6d0d7fda55d5cae"><div class="ttname"><a href="a00959.html#a85f2e3a9a4aa2644b6d0d7fda55d5cae">ghinst</a></div><div class="ttdeci">HANDLE ghinst</div><div class="ttdef"><b>Definition:</b> <a href="a00959_source.html#l00019">usrbench.c:19</a></div></div>
<div class="ttc" id="aa00956_html_a4c546dd348aa5f1233485f2214a24a23"><div class="ttname"><a href="a00956.html#a4c546dd348aa5f1233485f2214a24a23">IDM_SAVERESULTS</a></div><div class="ttdeci">#define IDM_SAVERESULTS</div><div class="ttdef"><b>Definition:</b> <a href="a00956_source.html#l00003">dialogs.h:3</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_ba550e0209ab8133bbb9fbfaaefaa060.html">tools</a></li><li class="navelem"><a class="el" href="dir_03e97bd5b13cb76f873571f2f3fa6ef4.html">usrbench</a></li><li class="navelem"><a class="el" href="a00959.html">usrbench.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
